package com.alice.myrule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AliceRule {
//可以写自定义算法
    @Bean
    public IRule myRule(){
        return new DiyRandomRule();
    }
}
